<?php
/**
 * 乐刷查询类
 * User: 13651
 * Time: 2025/9/26 09:35
 */

namespace App\Api\Controllers\LeshuaUnion;

use App\Api\Controllers\Cmbc\BaseController;
use App\Param\LeshuaUnion\GetChannelDetailsParams;
use App\Services\HuifuService;
use App\Services\LeshuaUnionStoresService;
use App\Traits\ResponseTrait;


class QueryController  extends BaseController
{
    use ResponseTrait;
    
    /**
     * 获取商户进件详情
     * @param Request $res
     * @return mixed
     * @throws \App\Exceptions\BizException
     */
    public function getChannelDetails()
    {
        $params = GetChannelDetailsParams::create();
        $data = LeshuaUnionStoresService::getInstance()->getChannelStatus($params);
        if (is_string($data))
            return $data;
        return $this->successResponse('success', $data);
    }

}